package by.alex.dzeshko.facebooksuperclient.utils;

import android.view.View;
import android.widget.AbsListView.LayoutParams;
import by.alex.dzeshko.facebooksuperclient.R;

public class ViewHider {

	public static void hideListItem(View v, boolean hide){
		if(hide){
			v.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, 1));
			v.setVisibility(View.GONE);
		} else{
			v.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));
			v.setVisibility(View.VISIBLE);
		}
	}

}
